import zipimport
django = zipimport.zipimporter('django_dev.zip').load_module('django')
from django.conf.urls.defaults import *
from django.conf import settings

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^calportal/', include('calportal.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # (r'^admin/', include(admin.site.urls)),
    (r'^$', 'calportal.mainpage.views.index'),
    (r'^upload.*$', 'calportal.mainpage.views.upload'),
    (r'^editprofile.*$', 'calportal.mainpage.views.edit_profile'),
    (r'^delete/(.*)$', 'calportal.mainpage.views.delete'),
    (r'^classes/?([\w\s,]*)/?([\w\s,]*)/?$', 'calportal.mainpage.views.classes'),
    (r'^input_major.*$', 'calportal.mainpage.views.input_major'),
    (r'^add_comment.*$', 'calportal.mainpage.views.add_comment'),
    (r'^api/.*$', 'calportal.mainpage.views.api'),
    (r'^add_class.*$', 'calportal.mainpage.views.add_class'),
    (r'^thumbs_up/(.*)$', 'calportal.mainpage.views.thumbs_up'),
    (r'^thumbs_down/(.*)$', 'calportal.mainpage.views.thumbs_down'),
    (r'^remove_class.*$', 'calportal.mainpage.views.remove_class'),
    (r'^update_resource.*$', 'calportal.mainpage.views.update_resource'),
    (r'^remove_comment/(.*)$', 'calportal.mainpage.views.remove_comment'),
    (r'^remove_item/(.*)$', 'calportal.mainpage.views.remove_item'),
    # TODO remove class
)
